formula to calculate the sample size